package org.scheduler4j;

import java.util.Locale;

/**
 * the configuration of all Scheduler4J, you can changes these configurations
 * for all Scheduler4J.
 * 
 * @author Eric
 * 
 */
public final class Configuration {

	/**
	 * the start day of week, Sunday as default.
	 */
	private static int weekStartDay = Constants.WEEK_DEFAULT_START_DAY;

	/**
	 * the locale of all Scheduler4J.
	 */
	private static Locale locale = Locale.getDefault();

	public static Locale getLocale() {
		return locale;
	}

	public static void setLocale(Locale locale) {
		Configuration.locale = locale;
	}

	public static int getWeekStartDay() {
		return weekStartDay;
	}

	public static void setWeekStartDay(int weekStartDay) {
		Configuration.weekStartDay = weekStartDay;
	}

}
